import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import router from "./router";
import store from "./store";
import urlApi from "./util/urlApi";
import request from '@/util/request';
import config from '@/config';


//css样式
import "@/style/home.css";
import "@/style/main.css";
// 自定义样式组件
const app = createApp(App);

const url = config.baseUrl;
const dev =  config.baseUrl;
app.config.globalProperties.$urlApi = urlApi;
app.config.globalProperties.$Request = request;
app.config.globalProperties.$url = url;
app.config.globalProperties.$dev = dev;


// 引入组件

app.use(ElementPlus, { locale: zhCn });
app.use(store).use(router).mount("#app");